<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="<%=basePath%>/style/style.css" rel="stylesheet"
	type="text/css">
<link href="<%=basePath%>/style/form.css" rel="stylesheet"
	type="text/css">
<script>
	var flag=true;
	function showdetail(){
	if(flag){
	document.getElementById('detail').style.display='block';
	flag=false;
	}else{
	document.getElementById('detail').style.display='none';
	flag=true;
	}
	
	}
	</script>
<style>
#warp {
	position: absolute;
	width: 100%;
	margin-top: 10%;
}
</style>
<body>
	<div class="rightCon" align="center">
		<p>
			&nbsp;
		</p>
		<p>
			&nbsp;
		</p>
		<p>
			&nbsp;
		</p>
		<table border="0" cellspacing="0" cellpadding="0" class="message">
			<tr>
				<td class="messageTitle">
					系统消息
				</td>
			</tr>
			<tr>
				<td class="messageC">
					<h2>
						<font color="red">错误信息！</font>
					</h2>
					<div>
						<img src="images/message02.jpg" width="451" height="14" />
					</div>
					<h3>
						<s:if test="success==false">
							<font color="red">【${message}】</font>
							<br />
							<a href="${jmpUrl}">点击返回...</a>
							<a href='javascript:showdetail();'>查看详细错误信息</a>
							<div id='detail' align="left" style="width: 100%; display: none;">
								<iframe width="100%" height="600"
									src="<%=path%>/errordetail.jsp"></iframe>
							</div>
						</s:if>
						<s:else>【${message}】<br>
                            <a href="${jmpUrl}">点击返回...(${jmptime}秒后自动返回)</a>
							<script>setTimeout("window.location.href ='${jmpUrl}';", ${jmptime*1000});</script>
						</s:else>
					</h3>
				</td>
			</tr>
		</table>
	</div>
</body>